#ifndef NR_CLIENT_DEVICETREEWIDGETITEM_H
#define NR_CLIENT_DEVICETREEWIDGETITEM_H

#include <QtGui/QWidget>
#include <QtGui/QTreeWidget>

//#include "../nr_core/nr_object.h"
#include "nr_object_manager.h"

class DeviceTreeWidgetItem : public QTreeWidgetItem
{

public:
    enum treenode_type_t {
        nr_device_item_server = 0,
        nr_device_group,
        nr_device_item,
        nr_device_property
    };

public:
    DeviceTreeWidgetItem(const QStringList &strings, int type = Type);
    ~DeviceTreeWidgetItem();

    nr_object* &object_device(){return m_object_device;}
    treenode_type_t& treenode_type(){return m_treenode_type;}

private:
    nr_object* m_object_device;
    treenode_type_t m_treenode_type;

};


#endif // 
